<!-- modal template -->
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">修改密码</h4>
</div>
<form ng-submit="submitForm(pwdForm.$valid)" name="pwdForm" class="form-horizontal" novalidate >
<div class="modal-body">
<div class="row" style="padding:0;">
      <div class="col-md-12">
            <div class="form-group">
                  <label class="col-md-3 control-label">旧密码</label>
                  <div class="col-md-9">
                        <input type="password" name="userPassword" class="input-sm form-control" ng-model="userData.userPassword"
                               required custom-validate="{ required : true, remout : { value : ['service/SysUser/validateUserPassword', 'userData' ], message : '旧密码验证错误' } }"/>
                  </div>
            </div>
            <div class="form-group">
                  <label class="col-md-3 control-label">新密码</label>
                  <div class="col-md-9">
                        <input type="password" name="newPassword" class="input-sm form-control" ng-model="userData.newPassword"
                               required custom-validate="{ required : true, minLength: 6 }"/>
                  </div>
            </div>
          <div class="form-group">
              <label class="col-md-3 control-label">确认新密码</label>
              <div class="col-md-9">
                  <input type="password" name="rePassword" class="input-sm form-control" ng-model="userData.rePassword"
                         required custom-validate="{ required: true, minLength: 6, equalToScopeVal: { value : 'userData.newPassword', message:'两次输入的密码不同' }  }"/>
              </div>
          </div>
      </div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="closeThisDialog()">取消</button>
<button type="submit" class="btn btn-primary" ng-disabled="pwdForm.$invalid" ng-click="confirm()">确认</button>
</div>
</form>
